# docker build -t fc6a1b03/alpinelinux-jre17:2022.01.03 .
FROM alpine:latest
MAINTAINER xuhaifeng <asd1161575755@outlook.com>

WORKDIR /data/

# 时区配置
ENV    TIME_ZONE Asiz/Shanghai
VOLUME /etc/localtime:/etc/localtime

# jre安装
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk -U --no-cache upgrade
RUN apk add --no-cache openjdk17-jre-headless
RUN java -version